package com.chenjun.core.vo.sys;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;

import org.springframework.beans.BeanUtils;

import com.chenjun.core.dao.generator.entity.SysUserRole;


@SuppressWarnings("serial")
public class UserRoleBean implements Serializable{
	
    /**
     * 用户角色表  
     * db_column: id 
     */	
	private String id;
    /**
     * 用户ID  
     * db_column: user_id 
     */	
	private String userId;
	
	private String userName;
    /**
     * 角色ID  
     * db_column: role_id 
     */	
	private String roleId;
	
	private String roleName;
	
	private String password;
	
	private String disabled;
	
	private String userNum;
	
	private String sex;
	
	private String phone;
	
	private String email;
	
	private String repassword;
	
	private String realName;
	
	private String address;
	
	private String officeName;
	
	private String createTime;

	public void setId(String id) {
		this.id = id == null ? null : id.trim();
	}
	
	public String getId() {
		return this.id;
	}
	public void setUserId(String userId) {
		this.userId = userId == null ? null : userId.trim();
	}
	
	public String getUserId() {
		return this.userId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId == null ? null : roleId.trim();
	}
	
	public String getRoleId() {
		return this.roleId;
	}
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDisabled() {
		return disabled;
	}

	public void setDisabled(String disabled) {
		this.disabled = disabled;
	}

	public String getUserNum() {
		return userNum;
	}

	public void setUserNum(String userNum) {
		this.userNum = userNum;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRepassword() {
		return repassword;
	}

	public void setRepassword(String repassword) {
		this.repassword = repassword;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getOfficeName() {
		return officeName;
	}

	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	/**
	 * 根据Bean获取Model模型
	 * @return
	 * PayBean
	 * @throws InvocationTargetException 
	 * @throws IllegalAccessException 
	 */
	public static UserRoleBean getBeanByModel(SysUserRole source) throws IllegalAccessException, InvocationTargetException{
		UserRoleBean target = new UserRoleBean();
		BeanUtils.copyProperties(source, target);
		return target;
	}
	
	
	/**
	 * 根据Model获取Bean模型
	 * @return
	 * PayBean
	 * @throws InvocationTargetException 
	 * @throws IllegalAccessException 
	 */
	public static SysUserRole getModelByBean(UserRoleBean source) throws IllegalAccessException, InvocationTargetException{
		SysUserRole target = new SysUserRole();
		BeanUtils.copyProperties(source, target);
		return target;
	}

}
